class PSAIControllerHacker extends PSAIControllerBase;

// Specific state for hacking enemies
auto state Hacking
{
	event Tick(float DeltaTime)
	{
		if(PlayerIsSeen() || PSPawnEnemyRandom(Pawn).bBeingAttacked || SeeFight())
		{
			if(CanAttack())
			{
				GotoState('Attack');
			}
			else
			{
				if(WantToCover())
				{
					GotoState('TakeCover');
				}
				else
				{
					GotoState('Evade');
				}
			}			
		}
		else if(SeeDeadComrade())
		{
			GotoState('GoToCheck');
		}
	}

Begin:
	PSPawn(Pawn).CurrentPosture = PSPawn(Pawn).EPosture.POSTURE_Hacking;
	Target = none;
	PSPawnEnemyRandom(Pawn).SetMovingSpeed(PSPawnEnemyRandom(Pawn).EMovingSpeed.SPEED_Idle);
}

DefaultProperties
{
}
